	var oTop= document.getElementById('top')
		function nav(){
		var oLi=oTop.getElementsByTagName('ul')[0].getElementsByTagName('li')[1];//拿到ul下第二个li
		var oFl=document.getElementById('fulan');//拿到fulan
		// console.log(oFl)
		oLi.onmouseover=function(){     //鼠标移入li fulan  block
			oFl.style.display='block';
		}
		oLi.onmouseout=function(){		//鼠标移出li fulan none
			oFl.style.display='none';	
		}
		oFl.onmouseover=function(){		//鼠标移入fulan  block
			oFl.style.display='block';
		}
		oFl.onmouseout=function(){
			oFl.style.display='none';	//鼠标移出fulan none
		}
	}
	nav()



	function denglu(){
	var username = $("#zhanghu").val();
	var password = $("#password").val();
	if(username==""||password==""){
		alert("请把表单信息输入完整");
		return;
	}
	$.post("http://39.105.192.164:9090/apitest/login","username="+username+"&password="+password,function(data){
		if(data["code"]==1) {
			alert("用户登录成功");
			window.open("index.html");
			window.close();
		}
	})
}
var but = document.getElementById("but");
    but.onclick=function(){
    	console.log(111)
    	denglu();
    }